package com.yjt.oauth.test;

import com.yjt.common.constant.ComConstant;
import org.junit.Test;
import org.springframework.security.crypto.bcrypt.BCrypt;

/**
 * @author 曾智平
 * @ClassName: PasswordHappen
 * @Description: 密码生成
 * @date 2021/9/28 17:13
 */
public class PasswordHappen {

    @Test
    public void createPassword(){
       String pass =  BCrypt.hashpw("123456", BCrypt.gensalt());
        System.out.println(pass);
    }

}
